package progeny;

public class Gender {
	private String type;
	private Gender(String type){
		this.type = type;
	}
	public boolean equals(Gender other){
		return type.equals(other.type);
	}
	public static Gender randomGender(){
		if (Math.random()>.5)return male;
		return female;
	}
	
	public static Gender male = new Gender("male");
	public static Gender female = new Gender("female");
}
